package com.xr50.video.service;

import com.xr50.common.SaveRequest;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "user-service")
public interface UserServerHttp {
    @GetMapping("is/who")
    String getIsWho();

    @PostMapping("save")
    String save(@RequestBody SaveRequest name);
}
